import request from "@/utils/request";
/**
 * 获取矢量工具常用样式
 * @returns
 */
export const getToolDefaultStyles = async (data = {}) => {
    return await request.get("/sxnf_team/baseFolder/getCommonStyleByType", data).then((res) => {
        return res;
    });
};
/**
 * 添加用户自定义样式
 * @param data 样式数据
 */
export const addUserStyle = async (data = {}) => {
    return await request.post("/sxnf_team/commonStyleCustom/addCommonStyleCustom", data).then((res) => {
        return res;
    });
};
/**
 * 删除用户自定义样式
 * @param data id 样式id
 */
export const removeUserStyle = async (data = {}) => {
    return await request.post("/sxnf_team/commonStyleCustom/removeCommonStyleCustomById", data).then((res) => {
        return res;
    });
};
/**
 * 修改用户自定义样式
 */
export const updateUserStyle = async (data = {}) => {
    return await request.post("/sxnf_team/commonStyleCustom/updateCommonStyleCustom", data).then((res) => {
        return res;
    });
};
/**
 * 获取用户自定义样式
 */
export const getUserStyles = async (data = {}) => {
    return await request.get("/sxnf_team/commonStyleCustom/getCommonStyleCustomByUserId", data).then((res) => {
        return res;
    });
};
